namespace ColladaDotNet.OpenTKMapping
{
	public class Material : DocumentLibraryElement<material>
	{
		private EffectInstance instance_effect;
		internal override void Load(material colladaData)
		{
			base.Load(colladaData);

			instance_effect = Document.CreateElement<EffectInstance>(colladaData.instance_effect);
		}
		public void Bind()
		{
			if (instance_effect != null)
				instance_effect.Bind();
		}

		public void Unbind()
		{
			if (instance_effect != null)
				instance_effect.Unbind();
		}
	}
}